import request from '@/utils/request'

// 查询部所分摊情况列表
export function listJyjcBsExpenses(query) {
  return request({
    url: '/system/JyjcBsExpenses/list',
    method: 'get',
    params: query
  })
}

// 查询部所分摊情况详细
export function getJyjcBsExpenses(year) {
  return request({
    url: '/system/JyjcBsExpenses/' + year,
    method: 'get'
  })
}

// 新增部所分摊情况
export function addJyjcBsExpenses(data) {
  return request({
    url: '/system/JyjcBsExpenses',
    method: 'post',
    data: data
  })
}

// 修改部所分摊情况
export function updateJyjcBsExpenses(data) {
  return request({
    url: '/system/JyjcBsExpenses',
    method: 'put',
    data: data
  })
}

// 删除部所分摊情况
export function delJyjcBsExpenses(year) {
  return request({
    url: '/system/JyjcBsExpenses/' + year,
    method: 'delete'
  })
}
